<?php

namespace App\Listeners;

use App\Events\PostWasPublish;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class PostWasPublishListener
{
    public $user;
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //;
    }

    /**
     * Handle the event.
     *
     * @param  PostWasPublish  $event
     * @return void
     */
    public function handle(PostWasPublish $event)
    {
        dd( $event->post );
    }
}
